package com.dayilyword.mapper;

import com.dayilyword.entity.Attention;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface AttentionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Attention record);

    int insertSelective(Attention record);

    Attention selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Attention record);

    int updateByPrimaryKey(Attention record);

    int deleteByUserIdAndTargetId(Integer userId, Integer targetId);


    List<HashMap<String, Object>> getAttentionList(int userId);

    List<HashMap<String, Object>> getFansList(int userId);

}